import { WebsiteConfig, PermissionConfig } from "maishu-chitu-admin";
import { merchantRoleId } from "../merchant";
import { menuItemIds } from "../shop";
import { ConnectionConfig } from "mysql";

export let stationPath = "/member/"
export let projectName = "member";
export type ServerContentData = { db: ConnectionConfig };

export let permissions: PermissionConfig = {}
permissions[`${stationPath}*`] = { roleIds: [merchantRoleId] };


let websiteConfig: WebsiteConfig = {
    requirejs: {
        paths: {
            "common": "/node_modules/common",
        }
    },
    menuItems: [
        {
            id: "5C28607E-C29A-4AD8-8891-219A4F9698A6", name: "用户列表", sortNumber: 50,
            path: "#user-list", roleIds: [merchantRoleId], parentId: menuItemIds.user
        }
    ]
}

export default websiteConfig;